PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

Fraction Font Feature Selector Constants

There are several ways to generate fractions with ATSUI. For a font that supports the fractions feature type, you may be able to select between two different types of automatic fraction generation, as shown in Table D-10.

Table D-10  Feature selectors for the kFractionsType feature type

Constant

Explanation

kNoFractionsSelector Specifies no substitution or construction of fractions.
kVerticalFractionsSelector Specifies replacement of slash-separated numeric sequences with pre-drawn fraction glyphs, if present in the font.
kDiagonalFractionsSelector Specifies replacement of slash-separated numeric sequences with pre-drawn fraction glyphs, or else construction of fractions with numerators and denominators, or superiors and inferiors.

Figure D-5 shows the same fraction, drawn first with kNoFractionsSelector and then with kDiagonalFractionsSelector.

Figure D-5  Fractions

Note:  To use the automatic fraction-generation capability, make sure that the slash separating the numerator and denominator is the fraction slash (character code 0xDA in the Standard Roman character set), not the normal slash character (0x2F). Automatic fraction generation does not occur unless the slash is a fraction slash.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)